package com.scm.platform.rpc.service.admin;

import com.alibaba.dubbo.config.annotation.Service;
import com.scm.platform.dao.model.User;

import java.util.HashMap;
import java.util.Map;

/**
 * @author dingc
 * @date 2017/9/14.
 */
@Service(version = "1.0.0")
public class UserRpcService implements DubboService {

    @Override
    public Map getUser(String params) {
        Map<String, Object> resultMap = new HashMap<>();
        resultMap.put("data",new User());
        resultMap.put("rpcRetCode",200);
        resultMap.put("rpcRetMsg", "success");
        return resultMap;
    }
}
